Console applications are primarily used to implement offline operations required for online Web applications, such as code generation, search index compilation, mail sending, and so on. The YII Framework provides a framework for writing console
I. Basic Introduction
SQLite is a self-contained, serverless, zero-configuration, and transactional relational database engine. Because it is very small, it can also be built into your application as an embedded database. SQLite is used in Solaris 1
This article describes how to create a scheduled task by using commands in the yii framework on the console. For more information, see
This article describes how to create a scheduled task by using commands in the yii framework on the console. For
Console applications are mainly used for offline operations required by online Web applications, such as code generation, search index compilation, and mail sending. the Yii Framework provides an object-oriented framework for compiling console
The yii Framework uses console commands to create scheduled task examples. Assume that the Yii project path is homedesk1. the file homeappsprotectedcommandscrons. php is copied using the following code :? Php $ yiihome‑frameworkyii. php;
This article mainly introduces the example of creating a scheduled task using commands in the yii framework through the console. If you need a scheduled task, refer to the following command to assume that the Yii project path is/home/apps/
1.
Common commands for MySQL database operations and Common commands for mysql
Common commands for MySQL database operationsDOS Connection database1. Install MySQL to configure the environment2. Run the cmd command. net start mysql3. Find the root
Log in to the PostgreSQL database consolepsql 数据库名Login successful Display[zpf@kevin ~]$ psql postgrespsql (9.4.1)Type"help"for help.postgres=#Create DATABASE User xxxCREATE USER xxx WITH PASSWORD ‘xxxxxx‘;Create a database yyy and specify all of
Log in to the PostgreSQL database consolepsql 数据库名Login successful Display[zpf@kevin ~]$ psql postgrespsql (9.4.1)Type"help"for help.postgres=#Create DATABASE User xxxCREATE USER xxx WITH PASSWORD ‘xxxxxx‘;Create a database yyy and specify the owner
Assume that the Yii project path is/home/apps/
1. Create a file/home/apps/protected/commands/crons. php
run();
2. Create the required configuration file/home/apps/protected/config/console. php to configure the required components, database
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.